﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage_MasterPageAdmin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["ad_userName"] == null || Session["ad_userName"] == "")
        {
         Response.Redirect("Login.aspx");
        }
    }

    protected void lnkLogOutClick_Onclick(object sender, EventArgs e)
    {
        Session["ad_userName"] = null;
        Response.Redirect("Login.aspx");
    }

}
